package zero.tech.games.mj.data.entity;

import zero.tech.games.mj.util.CardUtil;
/**
 * 麻将牌实体
 * @author ludry
 */
public class Card {
	
    private int value = 0;
	private int color = 0;
	private Integer type = 0;
	private Integer point = 0;
	
	public void setCard(int[] arr)
	{
		setColor(arr[0]);
		setPoint(arr[1]);
		setValue(arr[2]);
		setType(CardUtil.getColorType(getColor()));
	}

	/**
	 * @return 值
	 */
	public int getValue() {
		return value;
	}

	/**
	 * @param value 值
	 */
	public void setValue(int value) {
		this.value = value;
	}

	/**
	 * @return color
	 */
	public int getColor() {
		return color;
	}

	/**
	 * @param color 要设置的 color
	 */
	public void setColor(int color) {
		this.color = color;
	}

	/**
	 * @return point
	 */
	public Integer getPoint() {
		return point;
	}

	/**
	 * @param point 要设置的 point
	 */
	public void setPoint(Integer point) {
		this.point = point;
	}

	/**
	 * @return type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type 要设置的 type
	 */
	public void setType(Integer type) {
		this.type = type;
	}
    
}
